package br.biofoco.p2p.utils;

import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;

import br.biofoco.p2p.rpc.messaging.WireMessage;

public interface Serializer {

	<T extends WireMessage> void serialize(T wireMessage, OutputStream outputStream) throws IOException;
	<T extends WireMessage> T unserialize(InputStream inputStream, Class<T> value) throws IOException;
}
